package abstractFactoryPattern;


import abstractFactoryPattern.factory.GuiFactory;

/**
 * @program: course
 * @author: lsn
 * @create: 2024-03-31 20:37
 * @description: 对不同系统渲染UI
 */
public class Application {
    private GuiFactory factory;

    public Application(GuiFactory factory) {
        this.factory = factory;

    }
    public void createUI() {
        factory.createButton().paint();
        factory.createCheckbox().paint();
    }
}

